home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 8
/
CD Funhouse Version 8.0 - Wayzata Technology (7013) (1993).iso
/
pc
/
mac
/
__cd_fun
/
__sports
/
hyperfoo.00
/
card_3983.txt
< prev
next >
Wrap
Text File
|
1990-10-03
|
3KB
|
133 lines
-- card: 3983 from stack: in.00
-- bmap block id: 7075
-- flags: 0000
-- background id: 2687
-- name: KICK OFF
-- part 1 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=383 top=212 right=270 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 13259 / 13259
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: ON SIDE KICK!
----- HyperTalk script -----
on mouseUp
global ty, dwn, dir, fdown, ptime, yop, kick, ofns, plytyp, onside,mdw
global play, ds, drop, inc
put "On Side Kick" into play
put 1 into onside
put 0 into drop
put 0 into inc
put 0 into plytyp
put 12 into ofns
put 12 into ptime
put the random of 99 into kick
put the random of 99 into rtn
if kick >= 95 and kick <100 then put 40 into ko
if kick >= 90 and kick <95 then put 33 into ko
if kick >= 70 and kick <90 then put 27 into ko
if kick >= 40 and kick <70 then put 15 into ko
if kick <40 then put 20 into ko
if rtn >= 0 and rtn <=100 then put 2 into r
visual effect scroll up
go to card 5
if dir=0 then
put ty-ko into fty
XFootball (ty*3)+106,(fty*3)+106
else
put ty+ko into fty
XFootball (ty*3)+106,(fty*3)+106
end if
put fty into ty
put 0 into dwn
put 0 into mdw
put r into yop
if dir=0 then
put ty+yop+10 into fdown
else
put ty-yop-10 into fdown
end if
put 0 into kick
Runplay
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 8004
-- rect: left=380 top=76 right=134 bottom=454
-- title width / last selected line: 0
-- icon id / first selected line: 13259 / 13259
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: KICK OFF!
----- HyperTalk script -----
on mouseUp
global ty, dwn, dir, fdown, ptime, yop, kick, ofns, plytyp,mdw,play
global ds, inc, drop, onside
put "KICK OFF" into play
put 0 into onside
put 0 into plytyp
put 0 into drop
put 0 into inc
put 0 into ofns
put 12 into ptime
put the random of 99 into kick
put the random of 99 into rtn
if kick >= 95 and kick <100 then put 40 into ko
if kick >= 90 and kick <95 then put 46 into ko
if kick >= 70 and kick <90 then put 51 into ko
if kick >= 40 and kick <70 then put 68 into ko
if kick <40 then put 57 into ko
if rtn >= 98 and rtn <100 then put 100 into r
if rtn >= 96 and rtn <98 then put 4 into r
if rtn >= 85 and rtn <96 then put 7 into r
if rtn >= 75 and rtn <85 then put 10 into r
if rtn >= 65 and rtn <75 then put 15 into r
if rtn >= 30 and rtn <65 then put 19 into r
if rtn >= 15 and rtn <30 then put 24 into r
if rtn <15 then put 30 into r
visual effect scroll up
go to card 5
if dir=0 then
put ty-ko into fty
XFootball (ty*3)+106,(fty*3)+106
else
put ty+ko into fty
XFootball (ty*3)+106,(fty*3)+106
end if
put fty into ty
put 0 into dwn
put 0 into mdw
put r into yop
if dir=0 then
put ty+yop+10 into fdown
else
put ty-yop-10 into fdown
end if
put 0 into kick
Runplay
end mouseUp